package com.module.base.base.title

import android.view.View
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes

/**
 * @author bsnl_yanxuwen
 * @date 2021/4/13 10:55
 * Description :
 * 标题
 */
interface OnTitleListener {
    fun initTitle()
    fun setCommonTitle(title: String?, isBack: Boolean = true)
    fun setCommonTitle(@StringRes resId: Int, isBack: Boolean  = true)
    fun setMyTitle(title: String?)
    fun setMyTitle(@StringRes resId: Int)
    fun setBackVisibility(visibility: Int)
    fun setBackResource(@DrawableRes resId: Int)
    fun setBackBtn(onClickListener: View.OnClickListener?)
    fun setBackBtn(@DrawableRes resId: Int, onClickListener: View.OnClickListener?)
    fun setRightBtn(@DrawableRes resId: Int, onClickListener: View.OnClickListener?)
    fun setRightText(text: CharSequence?, onClickListener: View.OnClickListener?)
    fun setRightText(@StringRes resId: Int, onClickListener: View.OnClickListener?)
    fun setRightBtnVisibility(visibility: Int)
    fun setRightTextVisibility(visibility: Int)
}